<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>

<script language="JavaScript" type="text/javascript">
    var num = 4;
    var int = setInterval("clock()", 1000);

    function clock() {
        num > 0 ? num-- : clearInterval(int);
        document.getElementById("time").innerHTML = num;
    }

    function go2b() {
        window.location.href = "/login.ftl";
    }
    setTimeout("go2b()", 4000);
</script>

<#--<script language="JavaScript" type="text/javascript">

</script>-->

<body>

<h2>这里是跳转测试的页面</h2>

您的账户名或密码错误，<span id="time"></span>秒后跳回登陆页面。

</body>
</html>